#include<iostream>
using namespace std;
#include<vector>
class Solution {
public:
    int largestCombination(vector<int>& candidates) {
        int arr[32] = { 0 };
        for (auto& e : candidates) {
            for (int i = 0; i < 24; ++i) {
                arr[i] += (e >> i) & 1;
            }
        }
        int ans = 0;
        for (auto& e : arr)
            ans = max(ans, e);
        return ans;
    }
};